package com.indsvr.entity.xunlei;

public class XunLeiPostTask {

    private String type = "user#download-url";
    private String name;
    private String file_name;
    private String file_size;
    private String space;
    private Params params;

    public XunLeiPostTask(XunLeiFileList xunLeiFileList, String deviceId, String fileIndex, String pathId, String url) {
        this.name = xunLeiFileList.getList().getResources().get(0).getName();
        this.file_name = xunLeiFileList.getList().getResources().get(0).getName();
        this.file_size = ""+xunLeiFileList.getList().getResources().get(0).getFile_size();
        this.space = deviceId;
        this.params = new Params();
        this.params.target=deviceId;
        this.params.url=url;
        this.params.total_file_count=""+xunLeiFileList.getList().getResources().get(0).getFile_count();
        this.params.sub_file_index=fileIndex;
        this.params.parent_folder_id=pathId;
    }


    public static class Params{
        private String target;
        private String url;
        private String total_file_count;
        private String sub_file_index;
        private String file_id = "";
        private String mime_type = "";
        private String parent_folder_id;

    }
}
